import java.util.Scanner;

public class emmm {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x;
        System.out.println("请输入一个数字");
        x = s.nextInt();
        int n;
        System.out.println("请再输入一个数字");
        n = s.nextInt();
        int m;
        System.out.println("最后再输入一个数字");
        m = s.nextInt();
        if (x < n && x < m) {
            System.out.println(x);
            if (m < n) {
                System.out.println(m);
                System.out.println(n);
            }
            if (m > n) {
                System.out.println(n);
                System.out.println(m);

            }
        }
        if (n < x && n < m) {
            System.out.println(n);
            if (m < x) {
                System.out.println(m);
                System.out.println(x);
            }
            if (m > x) {
                System.out.println(x);
                System.out.println(m);

            }
        }
        if (m < n && m < x) {
            System.out.println(m);
            if (n < x) {
                System.out.println(n);
                System.out.println(x);
            }
            if (n > x) {
                System.out.println(x);
                System.out.println(n);

            }
        }
    }
}